# -*- coding: utf-8 -*-


import urllib2
import sys
import re
import string

#myParameters = { "q" : "%s" % (sys.argv[1],), "r" : "site_siteinfo", "p" : "bigtop"  }

#myURL = "http://www.alexa.com/siteinfo/%s#trafficstats" % (sys.argv[1],)
##!myURL = "http://www.alexa.com/search?%s" % (urllib.urlencode(myParameters),)

myURL = "http://dir.search.yahoo.com/search;_ylt=A2KJ3CfTfvJRDicAaEOq87UF?p=%s&fr=sfp&fr2=&iscqry=" % (sys.argv[1],)

data = urllib2.urlopen(myURL).read()
data = re.sub( r'<[^>]*>', ' ', data ).strip()
data = data.replace("          ","\n")

#print data #stampa di test

cont = 0
lista = string.split(data,"\n")
for elem in lista:
    if cont == 83:
        print cont, elem
    cont += 1
